package org.otherworld.process;

import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;

import org.otherworld.command.Command;
import org.otherworld.command.CommandCollector;

public class Sys {


	
	private static String root = System.getProperty("user.home") + "\\";

	public static String sep = System.getProperty("file.separator");
	public static String sepsep = sep + sep;	
	
	public Sys() {
		
	
	}
	
	public static boolean initializeSystem() {
		try {
			CommandCollector commandCollector = new CommandCollector();
			Hashtable<String,Command> commands = commandCollector.getCommands();
			ArrayList<String> inMemory = new ArrayList<String>();
			Iterator<String> iter = commands.keySet().iterator();
			String key;
			while (iter.hasNext()) {
				key = iter.next();
				inMemory.add(key);
			}
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return true;
	}
	
	public static void setRoot(String setroot) {
		root = setroot;
	}
	
	public static String getRoot() {
		return root;
	}
	
}
